﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entity.Department
{
    /// <summary>
    /// 部门表
    /// </summary>
    [Table("Departments")]
    public class Departments:AuditField<int>
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int? Pid { get; set; }
        /// <summary>
        /// 部门描述
        /// </summary>
        public string? Describe { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string? Principal { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        public int? OrderSort { get; set; } = 0;
        /// <summary>
        /// 与该项匹配的所有ID值，
        /// </summary>
        public string? LayerIds { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool? IsEnable { get; set; } = true;
    }
}
